import { Pipe, PipeTransform } from '@angular/core';

import { I18nService } from '../../core/i18n/i18n.service';

@Pipe({
  name: 'bzI18n'
})
export class I18nPipe implements PipeTransform {

  constructor(private i18nService: I18nService) {

  }

  transform(key: string, groupKey?: string): any {
    return this.i18nService.getValue(key, groupKey);
  }

}
